package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ProjectName: IEIS2
 * @Package: com.indusfo.spc.pojo
 * @ClassName: BadcauseType
 * @Author: 熊冰
 * @Description: ${description}
 * @Date: 2019/8/8 16:44
 * @Version: 1.0
 * 不良原因类型 pojo类
 */

@Table(name = "ba_badcause_type")
public class BadcauseType extends BasePojo {

	private static final long serialVersionUID = 7839850913719501526L;

	@Id
    @Column(name = "badcause_type_id",insertable=false)
    //类型编号
    private Integer badcauseTypeId;

    //类型名称
    private String badcauseTypeName;

    //类型父编号 顶级父标签为0
    private Integer badcauseTypePid;

    //备注
    private String remark;

    //数据状态
    //1，正常，2.删除，3、停用
    private Integer dataState= 1;

    //标记
    private Integer flag;


    public Integer getBadcauseTypeId() {
        return badcauseTypeId;
    }

    public void setBadcauseTypeId(Integer badcauseTypeId) {
        this.badcauseTypeId = badcauseTypeId;
    }

    public String getBadcauseTypeName() {
        return badcauseTypeName;
    }

    public void setBadcauseTypeName(String badcauseTypeName) {
        this.badcauseTypeName = badcauseTypeName== null ? null : badcauseTypeName.trim().replace(" ","");
    }

    public Integer getBadcauseTypePid() {
        return badcauseTypePid;
    }

    public void setBadcauseTypePid(Integer badcauseTypePid) {
        this.badcauseTypePid = badcauseTypePid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
	public String toString() {
		return "BadcauseType [badcauseTypeId=" + badcauseTypeId + ", badcauseTypeName=" + badcauseTypeName
				+ ", badcauseTypePid=" + badcauseTypePid + ", remark=" + remark + ", dataState=" + dataState + ", flag="
				+ flag + "]";
	}

	public String BasePojoToString() {
        return super.toString();
    }

}
